// 封装获取部门名称
const query = require('../config/db.config.js')

module.exports =  async (id)=> {
  if(id == 0){
    return '学院不限'
  }
  let sqlDep = `SELECT depName FROM depinfo WHERE depId = ${id}`
  let depdata= await query(sqlDep)
  let name = depdata[0].depName || ''
  return name 
}